package com.itheima.demo.demo09;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class FrCopy {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("D:\\Day01\\JavaEE基础_最终章.CHM");
        FileWriter fw=new FileWriter("D:\\JavaEE基础_最终章.CHM");
        int len;
        char[]c=new char[1024];
        while ((len=fr.read(c))!=-1){
            fw.write(c,0,len);
        }
        fr.close();
        fw.close();
    }
}
